<?php

//判断是否来自场景体,底部菜单不变
if($_RQ['plugin_name']){
	$this->session('plugin_name',$_RQ['plugin_name']);
}
$plugin_name=$this->session('plugin_name')?$this->session('plugin_name'):'';
if($plugin_name){
	$return['footernav']=$this->plugin($plugin_name)->plugin_setting('basic')['footernav'];
}
$return['pluginset']=$return['basic']=$this->plugin_setting('setting');
if($return['basic']['isno_open']){
	exi('多商户功能暂未开启！','error','goback');
}
if($_SESSION['merchfooternav']){
	$return['pluginset']['merchfooternav']=$_SESSION['merchfooternav'];
}
if($_RQ['merchid']){
	$_SESSION['onemerchid']=$_RQ['merchid'];
}
$_SESSION['onemerchid']=$_SESSION['onemerchid']?:0;
$_SESSION['merchid']=$_SESSION['onemerchid']?:$_SESSION['merchid'];